package com.gxa.security.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gxa.security.entity.Menu;
import com.gxa.security.entity.Role;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 25688
* @description 针对表【role】的数据库操作Mapper
* @createDate 2023-04-08 09:40:53
* @Entity generator.domain.Role
*/
@Mapper
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * 查询当前用户的角色 多对多的关系
     * @param userId
     * @return
     */
   Role findRoleByUserId(Integer roleId);







}




